/*package main;

import java.awt.event.ActionEvent;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.event.ActionListener;
import jobads.DeleteJobScreen;

public class MainMenu extends JFrame {
	private static final long serialVersionUID = 1L;
	
	JPanel menuPanel;
	MainController mController = new MainController();
	public MainMenu() {
		super("JASS");

		menuPanel = new JPanel();
		setContentPane(menuPanel);
		menuPanel.setPreferredSize(new Dimension(640,120));
		
		menuPanel.setLayout((new FlowLayout()));
		JButton btnViewJobResponse = new JButton("View Job Response");
		menuPanel.add(new JButton("Create Job Ads"));
		menuPanel.add(new JButton("Edit Job Ads"));
		menuPanel.add(new JButton("Delete Job Ads"));

		menuPanel.add(btnViewJobResponse);
		btnViewJobResponse.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				mController.viewJobResponse();
			}
		});
                
                ActionListener al = new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        DeleteJobScreen dj = new DeleteJobScreen();
//                        throw new UnsupportedOperationException("Not supported yet.");
                    }
                };
                        
               // menuPanel.add(new JButton("View Job Response"));

		pack();
	    setVisible(true);
	    
	}
}*/

package main;

import java.awt.event.ActionEvent;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.event.ActionListener;
import jobads.DeleteJobScreen;

public class MainMenu extends JFrame {
	private static final long serialVersionUID = 1L;
	
	JPanel menuPanel;
	MainController mController = new MainController();
	public MainMenu() {
		super("JASS");

		menuPanel = new JPanel();
		setContentPane(menuPanel);
		menuPanel.setPreferredSize(new Dimension(640,120));
		
		menuPanel.setLayout((new FlowLayout()));
		JButton btnViewJobResponse = new JButton("View Job Response");
		menuPanel.add(new JButton("Create Job Ads"));
		menuPanel.add(new JButton("Edit Job Ads"));
		menuPanel.add(new JButton("Delete Job Ads"));

		menuPanel.add(btnViewJobResponse);
		btnViewJobResponse.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				mController.viewJobResponse();
			}
		});
                
                ActionListener al = new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        DeleteJobScreen dj = new DeleteJobScreen();
//                        throw new UnsupportedOperationException("Not supported yet.");
                    }
                };
                       

		pack();
	    setVisible(true);
	    
	}
}

